﻿<Application
    x:Class="AMMVVM.WP8.App"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone">

    <!--Application Resources-->
    <Application.Resources>
        <local:LocalizedStrings xmlns:local="clr-namespace:AMMVVM.WP8" x:Key="LocalizedStrings"/>
        <DataTemplate x:Key="ColoredSquareTemplate">
            <Grid Width="390" Height="200" Background="{Binding Color}" Margin="5">
                <Grid Background="Black" Height="100" VerticalAlignment="Bottom" Opacity="0.7">
                    <TextBlock Text="{Binding Content}" VerticalAlignment="Center" HorizontalAlignment="Center" Style="{StaticResource JumpListStringStyle}"/>
                </Grid>
            </Grid>
        </DataTemplate>
    </Application.Resources>

    <Application.ApplicationLifetimeObjects>
        <!--Required object that handles lifetime events for the application-->
        <shell:PhoneApplicationService
            Launching="Application_Launching" Closing="Application_Closing"
            Activated="Application_Activated" Deactivated="Application_Deactivated"/>
    </Application.ApplicationLifetimeObjects>

</Application>